3.2.57 \(\int \tan ^p(a+3 \log (x)) \, dx\) [157]

Optimal. Leaf size=120 \[ \left (1-e^{2 i a} x^{6 i}\right )^{-p} \left (\frac {i \left (1-e^{2 i a} x^{6 i}\right )}{1+e^{2 i a} x^{6 i}}\right )^p \left (1+e^{2 i a} x^{6 i}\right )^p x F_1\left (-\frac {i}{6};-p,p;1-\frac {i}{6};e^{2 i a} x^{6 i},-e^{2 i a} x^{6 i}\right ) \]

[Out]

(I*(1-exp(2*I*a)*x^(6*I))/(1+exp(2*I*a)*x^(6*I)))^p*(1+exp(2*I*a)*x^(6*I))^p*x*AppellF1(-1/6*I,-p,p,1-1/6*I,ex
p(2*I*a)*x^(6*I),-exp(2*I*a)*x^(6*I))/((1-exp(2*I*a)*x^(6*I))^p)

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 120, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {4587, 1986, 441, 440} \begin {gather*} x \left (1-e^{2 i a} x^{6 i}\right )^{-p} \left (\frac {i \left (1-e^{2 i a} x^{6 i}\right )}{1+e^{2 i a} x^{6 i}}\right )^p \left (1+e^{2 i a} x^{6 i}\right )^p F_1\left (-\frac {i}{6};-p,p;1-\frac {i}{6};e^{2 i a} x^{6 i},-e^{2 i a} x^{6 i}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Tan[a + 3*Log[x]]^p,x]

[Out]

(((I*(1 - E^((2*I)*a)*x^(6*I)))/(1 + E^((2*I)*a)*x^(6*I)))^p*(1 + E^((2*I)*a)*x^(6*I))^p*x*AppellF1[-1/6*I, -p
, p, 1 - I/6, E^((2*I)*a)*x^(6*I), -(E^((2*I)*a)*x^(6*I))])/(1 - E^((2*I)*a)*x^(6*I))^p

Rule 440

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[a^p*c^q*x*AppellF1[1/n, -p,
 -q, 1 + 1/n, (-b)*(x^n/a), (-d)*(x^n/c)], x] /; FreeQ[{a, b, c, d, n, p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[n
, -1] && (IntegerQ[p] || GtQ[a, 0]) && (IntegerQ[q] || GtQ[c, 0])

Rule 441

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Dist[a^IntPart[p]*((a + b*x^n)^F
racPart[p]/(1 + b*(x^n/a))^FracPart[p]), Int[(1 + b*(x^n/a))^p*(c + d*x^n)^q, x], x] /; FreeQ[{a, b, c, d, n,
p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[n, -1] &&  !(IntegerQ[p] || GtQ[a, 0])

Rule 1986

Int[(u_.)*((e_.)*((a_.) + (b_.)*(x_)^(n_.))^(q_.)*((c_) + (d_.)*(x_)^(n_))^(r_.))^(p_), x_Symbol] :> Dist[Simp
[(e*(a + b*x^n)^q*(c + d*x^n)^r)^p/((a + b*x^n)^(p*q)*(c + d*x^n)^(p*r))], Int[u*(a + b*x^n)^(p*q)*(c + d*x^n)
^(p*r), x], x] /; FreeQ[{a, b, c, d, e, n, p, q, r}, x]

Rule 4587

Int[Tan[((a_.) + Log[x_]*(b_.))*(d_.)]^(p_.), x_Symbol] :> Int[((I - I*E^(2*I*a*d)*x^(2*I*b*d))/(1 + E^(2*I*a*
d)*x^(2*I*b*d)))^p, x] /; FreeQ[{a, b, d, p}, x]

Rubi steps

\begin {align*} \int \tan ^p(a+3 \log (x)) \, dx &=\int \tan ^p(a+3 \log (x)) \, dx\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.56, size = 240, normalized size = 2.00 \begin {gather*} \frac {(1+6 i) \left (-\frac {i \left (-1+e^{2 i a} x^{6 i}\right )}{1+e^{2 i a} x^{6 i}}\right )^p x F_1\left (-\frac {i}{6};-p,p;1-\frac {i}{6};e^{2 i a} x^{6 i},-e^{2 i a} x^{6 i}\right )}{(1+6 i) F_1\left (-\frac {i}{6};-p,p;1-\frac {i}{6};e^{2 i a} x^{6 i},-e^{2 i a} x^{6 i}\right )-6 i e^{2 i a} p x^{6 i} \left (F_1\left (1-\frac {i}{6};1-p,p;2-\frac {i}{6};e^{2 i a} x^{6 i},-e^{2 i a} x^{6 i}\right )+F_1\left (1-\frac {i}{6};-p,1+p;2-\frac {i}{6};e^{2 i a} x^{6 i},-e^{2 i a} x^{6 i}\right )\right )} \end {gather*}

Warning: Unable to verify antiderivative.

[In]

Integrate[Tan[a + 3*Log[x]]^p,x]

[Out]

((1 + 6*I)*(((-I)*(-1 + E^((2*I)*a)*x^(6*I)))/(1 + E^((2*I)*a)*x^(6*I)))^p*x*AppellF1[-1/6*I, -p, p, 1 - I/6,
E^((2*I)*a)*x^(6*I), -(E^((2*I)*a)*x^(6*I))])/((1 + 6*I)*AppellF1[-1/6*I, -p, p, 1 - I/6, E^((2*I)*a)*x^(6*I),
 -(E^((2*I)*a)*x^(6*I))] - (6*I)*E^((2*I)*a)*p*x^(6*I)*(AppellF1[1 - I/6, 1 - p, p, 2 - I/6, E^((2*I)*a)*x^(6*
I), -(E^((2*I)*a)*x^(6*I))] + AppellF1[1 - I/6, -p, 1 + p, 2 - I/6, E^((2*I)*a)*x^(6*I), -(E^((2*I)*a)*x^(6*I)
)]))

________________________________________________________________________________________

Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \tan ^{p}\left (a +3 \ln \left (x \right )\right )\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(a+3*ln(x))^p,x)

[Out]

int(tan(a+3*ln(x))^p,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(a+3*log(x))^p,x, algorithm="maxima")

[Out]

integrate(tan(a + 3*log(x))^p, x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(a+3*log(x))^p,x, algorithm="fricas")

[Out]

integral(tan(a + 3*log(x))^p, x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \tan ^{p}{\left (a + 3 \log {\left (x \right )} \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(a+3*ln(x))**p,x)

[Out]

Integral(tan(a + 3*log(x))**p, x)

________________________________________________________________________________________

Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(a+3*log(x))^p,x, algorithm="giac")

[Out]

Timed out

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\mathrm {tan}\left (a+3\,\ln \left (x\right )\right )}^p \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(a + 3*log(x))^p,x)

[Out]

int(tan(a + 3*log(x))^p, x)

________________________________________________________________________________________